<template>
  <div class="login-container">
    <div class="form-container">
      <el-form label-width="80px">
        <el-form-item label="手机号:">
          <el-input v-model="form.mobile"></el-input>
        </el-form-item>
        <el-form-item label="密码:">
          <el-input v-model="form.password"></el-input>
        </el-form-item>
        <el-form-item>
          <el-button type="primary">确定</el-button>
          <el-button>取消</el-button>
        </el-form-item>
      </el-form>
    </div>
    <div>自行完成表单验证</div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      form: {
        mobile: '',
        password: ''
      }
    }
  }
}
</script>

<style scoped>
.login-container {
  width: 100vw;
  height: 100vh;
  background-color: rgb(238, 241, 246);
}
.form-container {
  width: 500px;
  height: 400px;
  border: 1px solid #b3c0d1;
  border-radius: 10px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  }
</style>